export default {
  state: {
    theme: '#1890ff',
    showSettings: false,
    tagsView: true,
    fixedHeader: false,
    sidebarLogo: true
  },
  mutations: {
    CHANGE_SETTING: (state, {key, value}) => {
      if (state.hasOwnProperty(key)) {
        state[key] = value
      }
    }
  },
  actions: {
    changeSetting({commit}, data) {
      commit('CHANGE_SETTING', data)
    }
  }
}
